import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import AdminLogin from './pages/AdminLogin';
import ForumManagement from './pages/ForumManagement';
import KnowledgeManagement from './pages/KnowledgeManagement';
import MedicinalCuisine from './pages/MedicinalCuisine';
import OrderManagement from './pages/OrderManagement';
import ProductManagement from './pages/ProductManagement';
import UserInformation from './pages/UserInformation';
import WellnessKnowledge from './pages/WellnessKnowledge';

const App: React.FC = () => {
  return (
    <Router>
      <Switch>
        <Route path="/admin-login" component={AdminLogin} />
        <Route path="/forum-management" component={ForumManagement} />
        <Route path="/knowledge-management" component={KnowledgeManagement} />
        <Route path="/medicinal-cuisine" component={MedicinalCuisine} />
        <Route path="/order-management" component={OrderManagement} />
        <Route path="/product-management" component={ProductManagement} />
        <Route path="/user-information" component={UserInformation} />
        <Route path="/wellness-knowledge" component={WellnessKnowledge} />
        <Route path="/" exact component={AdminLogin} />
      </Switch>
    </Router>
  );
};

export default App;